<template>
    <h2>支付成功！！！</h2>
    <button @click="$router.push('/')">跳转首页，再逛一逛</button>
</template>

<script>
import { useCounterStore } from '@/store/index.js'
import { mapActions } from 'pinia'
export default {
    methods: {
        ...mapActions(useCounterStore, ['updateOrderStatus']),
    },
    created() {
        let orderId = this.$route.query.out_trade_no
        this.updateOrderStatus(orderId)
    }
}
</script>